﻿using System;

class Trapezoid
{
    static void Main()
    {
        float a=9f;
        float b=5f;
        float h=7f;
        float area=h*((a+b)/2);
        Console.WriteLine(area);
    }
}
